package com.sks.service.house.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sks.bean.pojo.PayType;
import com.sks.dao.house.PayTypeDao;
import com.sks.service.base.BaseService;
import com.sks.service.house.PayTypeService;


@Service
@Transactional
public class PayTypeServiceBean extends BaseService<PayType> implements PayTypeService {
	
	@Resource(name="payTypeDao")
	public void setPayTypeDao(PayTypeDao payTypeDao) {
		setDao(payTypeDao);
	}
	
	@Override
	public List<PayType> getRentPayType() {
		return this.getDao().getScrollData(-1, -1, " o.type = 0", null).getResultlist();
	}
	
	@Override
	public List<PayType> getSalePayType() {
		return this.getDao().getScrollData(-1, -1, " o.type = 1", null).getResultlist();
	}
}
